package com.fjrcloud.dao;

import com.fjrcloud.entity.User;
import com.fjrcloud.entity.UserType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by shengjian.lin on 17-2-21.
 */
public interface UserDao extends BaseDao<User,Integer> {
    Page<User> findAll(Pageable pageable);
    Page<User> findByType(UserType type, Pageable pageable);
    User findByUserName(String userName);
    User findByUserNameAndPassword(String userName,String password);
}
